package lab02.test30;

import java.util.Scanner;

/**
 * Created by 婷婷 on 2017/11/17.
 */
public class Test30 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int []score = new int[5];
        int sum =0;
        for (int i = 0;i<score.length;i++){

            System.out.println("请输入成绩:");
            score[i] = scanner.nextInt();

            sum +=score[i];
        }
        double avg = sum/score.length;
        System.out.println("平均成绩："+avg);
    }
}
